import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useUserInfo = defineStore('user-info', () => {
  const userInfo = ref<UserInfo>({
    name: 'a',
    mobile: '123',
    email: 'abc',
  })

  function serUserInfo(info: UserInfo) {
    userInfo.value = info
  }

  return {
    userInfo,
    serUserInfo,
  }
})
